@extends('admin::layouts.master')
@section('content')
    <div class="card" id="app">
        <div class="card-header">模板管理</div>
        <div class="tab-container">
            <div class="card card-contrast card-border-color-success">
                @foreach($templates as $v)
                    <div class="card-body col-sm-3" style=" display: inline-block">
                        <img src="{{$v['preview']}}" style="width: 100%;height: 180px;">
                        @if(\HDModule::config('admin.config.template') == $v['name'])
                            <a href="#" class="btn btn-success btn-block">默认模板</a>
                        @else
                            <a href="{{route('setDefaultTemplate',$v['name'])}}" class="btn btn-secondary btn-block">将 {{$v['name']}}模板设为默认模板</a>
                        @endif
                    </div>
                @endforeach
            </div>
        </div>
    </div>
@endsection

